/*
 * app_protocol_event.h
 *
 *  Created on: 07.07.2013
 *      Author: SpirTanol
 */

#ifndef APP_PROTOCOL_EVENT_H_
#define APP_PROTOCOL_EVENT_H_

#include "events/protocol_event.h"
#include "global.h"

class AppProtocolEvent : public ProtocolEvent
{
	AppEventCode oCode;

public:
	AppProtocolEvent(AppEventCode code) : ProtocolEvent(QDateTime::currentDateTime(), PET_APP), oCode(code) {}
	~AppProtocolEvent() {}

	QString toString() const; // [virtual]

};

class AppProtocolEventEngine : public AppProtocolEvent
{
	int oCommand;

public:
	AppProtocolEventEngine(int command) : AppProtocolEvent(AEC_ENGINE_COMMAND), oCommand(command) {}
	~AppProtocolEventEngine() {}

	QString toString() const; // [virtual]

};

#endif /* APP_PROTOCOL_EVENT_H_ */
